<h1>Book Trader</h1>
<h2>Books</h2>
 <%= flash_notice %>
<div>
  Popular Books
  <ul>
  <% for book in @popular_books %>
    <li> <%= link_to h(book.title), :controller => "book", :action => "show", :id => book.id%></li>
    <% end %>
</ul>
</div>

<%  #Somewhere here I will have to see if they are authenticated %>
<div>
  Join BookTrader and start saving money today.
  <%= link_to("join now", :controller => "user",
                         :action => "new") %><br/>
   Or <%= link_to("login", :controller => "user",
                            :action => "login") %>
                         
</div>

<div>
  User Menu
  <ul>
    <li><%= link_to("Add a Book", :controller => "book", :action => "new")%></li>
    <li>See your books</li>
    <li>Find a book</li>
  </ul>
</div>
